# -*-codeing = utf-8 -*-
# @Tine:2024/9/18 
# @Author:计科201121尚益帆
# File：2.2.py
# @Software:PyCharm
def print_leaf_elements(lst):
    for item in lst:
        if isinstance(item, list):
            print_leaf_elements(item)
        else:
            print(item)

list1 = [1, '小明', '3', [3, '小组']]
print_leaf_elements(list1)

